<!doctype html>
<html class="x-admin-sm">

	<head>
		<meta charset="UTF-8">
		<title>后台登录</title>
		<meta name="renderer" content="webkit|ie-comp|ie-stand">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta http-equiv="Cache-Control" content="no-siteapp" />
		<link rel="stylesheet" href="../static/css/font.css">
		<link rel="stylesheet" href="../static/css/login.css">
		<link rel="stylesheet" href="../static/css/xadmin.css">
		<script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
		<script src="../static/lib/layui/layui.js" charset="utf-8"></script>

	</head>

	<body class="login-bg">

		<div class="login layui-anim layui-anim-up">
			<div class="message">BOSS-管理登录</div>
			<div id="darkbannerwrap"></div>

			<form method="post" class="layui-form" id="form_login" action="/doLogin">
				<input name="username"  placeholder="用户名" type="text" lay-verify="required" class="layui-input name">
				<hr class="hr15">
				<input name="password" lay-verify="required" placeholder="密码" type="password" class="layui-input pwd">
				<hr class="hr15">
				<input value="登录" lay-submit lay-filter="login" style="width:100%;" type="submit">
				<hr class="hr20">
			</form>
		</div>
		<script src="../static/js/jquery-2.1.0.js" type="text/javascript" charset="utf-8"></script>
		<script>
			$(function() {

				$("#form_login").submit(function() {
					var name = $(".name").val();
					alert(name)
					var pwd = $(".pwd").val();
					if(name == "") {
						alert("用户名不能为空！");
						return false;
					}else if(pwd==""){
						alert("密码不能为空！");
						return false;
					}else{
						return true;
					}
				})
			})
		</script>
		<!-- 底部结束 -->

	</body>

</html>